import com.demo.config.SpringConfig;
import com.demo.control.AccountController;
import com.demo.pojo.Account;
import com.demo.service.AccountService;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class test {
    @Test
    public void select(){
        AnnotationConfigApplicationContext acac = new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountController controller = acac.getBean(AccountController.class);
        List<Account> accounts = controller.selectAll();
        System.out.println(accounts);
    }
}
